
package com.zsrt.day20170505.ch04;

public class Node {

	private int data;
	
	private Node next;

	/**
	 * @return the node
	 */
	public int getNode() {
		return data;
	}

	/**
	 * @param node the node to set
	 */
	public void setNode(int node) {
		this.data = node;
	}

	/**
	 * @return the next
	 */
	public Node getNext() {
		return next;
	}

	/**
	 * @param next the next to set
	 */
	public void setNext(Node next) {
		this.next = next;
	}

	/**
	 * @param node
	 */
	public Node(int node) {
		super();
		this.data = node;
	}
	
	public Node(){
		
	}

	
	
}
